package com.msh.frame.client.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 验证枚举类型
 * @author qd_shihu1
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {EnumValidator.class})
@Documented
public @interface IValidateEnum {
    /**
     * 需要验证的类，多个必须全部通过
     * @return
     */
    Class<? extends IEnumValidate> targetClass();

    String message() default "参数类型不存在";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default {};
}
